import {
	$http
} from '@escook/request-miniprogram'
export default {
	owner_login(data) { //货主登录接口
		return $http.post('/auth/owner_login', data)
	},
	send_login_sms(data) { //登录短信接口
		return $http.post('/auth/sms/send_login_sms', data)
	},
	headshot(data) { //设置头像
		return $http.post('/shipper/personalInfo/headshot', data)
	},

	nickName(data) { //设置名称
		return $http.post('/shipper/personalInfo/nickName', data)
	},
	sex(data) { //设置名称
		return $http.post('/shipper/personalInfo/sex', data)
	},


	checkVerifyCode(data) { //校验验证码
		return $http.post('/shipper/personalInfo/checkVerifyCode', data)
	},
	sendVerifyCode(data) { //发送验证码
		return $http.post('/shipper/personalInfo/sendVerifyCode', data)
	},
	updatePhoneNumber(data) { //修改手机号
		return $http.post('/shipper/personalInfo/updatePhoneNumber', data)
	},
	headshot(data) { //修改头像
		return $http.post('/shipper/personalInfo/headshot', data)
	},

	queryRoleAndPostt(data) { //查询角色和行业
		return $http.get('/shipper/personalInfo/queryRoleAndPost', data)
	},

	setRoleAndPost(data) { //设置角色和行业
		return $http.post('/shipper/personalInfo/setRoleAndPost', data)
	},

	details(data) { //用户详情
		return $http.get('/shipper/personalInfo/details', data)
	},

	addressListVisible(data) { //查看地址（可见）
		return $http.post('/shipper/addressBook/addressListVisible', data)
	},

	collectBlacklistList(data) { //收藏拉黑管理
		return $http.get('/shipper/collectBlacklist/collectBlacklistList', data)
	},

	remove(id) { //收藏拉黑管理
		return $http.delete('/shipper/collectBlacklist/remove/' + id)
	},

	driverList(data) { //搜索司机
		return $http.get('/shipper/collectBlacklist/driverList', data)
	},

	collectBlacklist(data) { //新增收藏与拉黑
		return $http.post('/shipper/collectBlacklist', data)
	},

	deleteAccount(data) { //
		return $http.post('/shipper/personalInfo/deleteAccount', data)
	},

	feedback(data) { //意见反馈
		return $http.post('/shipper/setting/feedback', data)
	},

	person(data) { //意见反馈
		return $http.post('/shipper/setting/urgency/person', data)
	},

	personhave(data) { //意见反馈
		return $http.get('/shipper/setting/urgency/person/have', data)
	},

	query_invite_owner(data) { //推广列表
		return $http.post('/account/cargo_owner/query_invite_owner', data)
	},

	invite_owner(data) { //推广邀请
		return $http.post('/account/cargo_owner/invite_owner', data)
	},
	getInvite(data) { 
		return $http.get('/account/cargo_owner/invite', data)
	},

}